package com.simplemvc.core.vo;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author 王海
 */
public class ActionItem {
    
    @XStreamAsAttribute
    private String requestMapping;
    @XStreamAsAttribute
    private String className;
    @XStreamAsAttribute
    private String method;
    @XStreamImplicit(itemFieldName = "result")
    private List<ActionResult> results = new ArrayList<ActionResult>();

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getMethod() {
        return method;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public List<ActionResult> getResults() {
        return results;
    }

    public void setResults(List<ActionResult> results) {
        this.results = results;
    }  
}
